package behavioralPattern.mediator.example01;

/**
 * 具体同事类
 */
public class ConcreteColleague_A extends Colleague{
    public ConcreteColleague_A(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void exec(String key) {
        System.out.println("在A同事中 - 调用 - 中介者执行");
        getMediator().apply(key);
    }
}
